import { ConfigBase } from "./configBase/ConfigBase";
import { ConfigManager } from "../../../com/gengine/resource/ConfigManager";
import { AutoGuideData } from "../view/common/guide/AutoGuideData";
import { ClassTypesUtil } from "../view/common/ClassTypesUtil";
//class AutoGuideConfig
    
    export  class AutoGuideConfig extends ConfigBase
    {
       

        public /* override */ getKey(arg1: Object): Object
        {
            return arg1.mainId.toString() + "_" + arg1.stepId.toString();
        }

        protected /* override */ initConfig(): void
        {
            var loc2=null;
            var loc3=null;
            super.initConfig();
            var loc1=ConfigManager.instance.getJSONByFileName("autoGuide.xml");
            var loc4=0;
            var loc5=loc1.root.guide;
            for(loc2 of loc5) 
            {
                loc3 = new AutoGuideData();
                ClassTypesUtil.copyValue(loc3, loc2);
                _data[this.getKey(loc3)] = loc3;
            }
            return;
        }

        public static get instance(): AutoGuideConfig
        {
            if (AutoGuideConfig._instance == null) 
            {
                AutoGuideConfig._instance = new AutoGuideConfig();
            }
            return AutoGuideConfig._instance;
        }

        /* internal */ static /* var */_instance: AutoGuideConfig;
    }
